package com.vt.admin.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 职位
 */
@Data
@Accessors(chain = true)
public class SysPosition extends Model<SysPosition> {

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty("所属公司(组织表管理公司id)")
    private String companyId;

    @ApiModelProperty("职位名")
    private String name;

    @ApiModelProperty("上级职位id")
    private String parentId;

    @ApiModelProperty("排序号")
    private Integer sortNum;

    @ApiModelProperty("是否可编辑(0-否，1-是)")
    private Integer editable;

    @ApiModelProperty("数据状态(0-删除，1-正常)")
    private Integer status;

    private String creater;

    private String updater;

    private Date createTime;

    private Date updateTime;
}
